package com.xnyzc.lhy.order.entity.vehicle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
*
* 车辆保养表
*
* @author lhy@xnyzc.com
* @since 2019-07-24
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OaSysVehicleMaintain对象", description="车辆保养表")
public class OaSysVehicleMaintain implements Serializable {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value="maintain_id", type = IdType.INPUT)
    private Long maintainId;

    @ApiModelProperty(value = "保养内容")
    private String maintainContent;

    @ApiModelProperty(value = "保养时间")
    private Date maintainTime;

    @ApiModelProperty(value = "保养时公里数")
    private Integer maintainKilometers;

    @ApiModelProperty(value = "保养地点")
    private String maintainAddress;

    @ApiModelProperty(value = "保养费用")
    private BigDecimal maintainFee;

    @ApiModelProperty(value = "支付类型（0：现金、1：公务卡）")
    private Integer paymentType;

    @ApiModelProperty(value = "处理状态（0：未处理、1：已处理）")
    private Integer status;

    @ApiModelProperty(value = "图片")
    private String images;

    @ApiModelProperty(value = "处理人ID")
    private Long userId;

    @ApiModelProperty(value = "用户类型（0：管理员、1：司机）")
    private Integer userType;

    @ApiModelProperty(value = "用户来源")
    private String tag;

    @ApiModelProperty(value = "扩展字段1")
    private String expand1;

    @ApiModelProperty(value = "扩展字段2")
    private String expand2;

    @ApiModelProperty(value = "扩展字段3")
    private String expand3;

    @ApiModelProperty(value = "版本号")
    @Version
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "车辆ID")
    private Long vehicleId;


    public static final String MAINTAIN_ID = "maintain_id";

    public static final String MAINTAIN_CONTENT = "maintain_content";

    public static final String MAINTAIN_TIME = "maintain_time";

    public static final String MAINTAIN_KILOMETERS = "maintain_kilometers";

    public static final String MAINTAIN_ADDRESS = "maintain_address";

    public static final String MAINTAIN_FEE = "maintain_fee";

    public static final String PAYMENT_TYPE = "payment_type";

    public static final String STATUS = "status";

    public static final String IMAGES = "images";

    public static final String USER_ID = "user_id";

    public static final String USER_TYPE = "user_type";

    public static final String TAG = "tag";

    public static final String EXPAND1 = "expand1";

    public static final String EXPAND2 = "expand2";

    public static final String EXPAND3 = "expand3";

    public static final String VERSION = "version";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

}
